import useCommonStore from "@/store/common"
import type { Params } from "@/types/common"
import { $baseApi } from "@/utils/http-instance"

const commonStore = useCommonStore()

//  所有启用属性分组及对应属性值列表
export const $getAttributeGroupList = (params: Params) =>
	$baseApi.get(`attribute-groups/list-all-enabled-with-attrs`, params)

//  所有启用的出发地目的地 type 10-出发地 20-目的地
export const $getTripPlaces = (params: Params) =>
	$baseApi.get(`regions/${commonStore.region_id}/trip-places/list-all-enabled`, params)
